package me.zhengjie.kwService.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import me.zhengjie.kwService.SysUsersGeneralExamsService;
import me.zhengjie.mapper.SysUsersGeneralExamsMapper;
import me.zhengjie.pojo.entity.SysUsersGeneralExams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Author Long
 * @Date 2021/10/15 14:50
 */
@Service
public class SysUsersGeneralExamsServiceImpl extends ServiceImpl<SysUsersGeneralExamsMapper, SysUsersGeneralExams> implements SysUsersGeneralExamsService {

    @Autowired
    private SysUsersGeneralExamsMapper sysUsersGeneralExamsMapper;

    /**
     * @param ids
     */
    @Override
    public void deleteBatch(List<Integer> ids) {
        QueryWrapper<SysUsersGeneralExams> wrapper = new QueryWrapper<>();
        wrapper.in("general_id", ids);
        sysUsersGeneralExamsMapper.delete(wrapper);
    }
}
